﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucSanpham.ascx.cs" Inherits="ucControl_ucSanpham" %>
<div id="content1">
    <div id="content_left">
        <div class="content">
            <div class="title1">
                Danh mục sản phẩm</div>
            <div class="content_main">
                <div class="sidebarmenu">
                    <asp:Repeater ID="rpMenuPa" runat="server" OnItemDataBound="rpMenuPa_ItemDataBound">
                        <ItemTemplate>
                            <asp:HiddenField ID="hid" runat="server" />
                            <a href="" id="menu_left" class="menuitem submenuheader ">
                                <%# Eval("MenuParentName")%></a>
                            <div class="submenu" contentindex="0c" style="display: block;">
                                <ul>
                                    <asp:Repeater ID="rpmenuChild" runat="server">
                                        <ItemTemplate>
                                            <li><a headerindex="0h" href='<%# "Sanpham.aspx?id=" + Eval("IDMenuChild") %>'>
                                                <%# Eval("MenuChildName")%>
                                            </a></li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
        <div class="content">
            <div class="title">
                Hỗ trợ trực tuyến</div>
            <p class="yahoo1">
                <a href="ymsgr:sendIM?hondaautopro">
                    <img border="0" src="http://opi.yahoo.com/online?u=hondaautopro&m=g&t=2&l=us" alt="" /></a></p>
            <p class="yahoo1">
                <a href="#">
                    <img src="images/sky.png" alt="online" /></a></p>
            <p class="dt1">
                ĐT: 0933.70.61.66
            </p>
        </div>
        <div class="content">
            <div class="title">
                New</div>
            <div id="tickerContainer">
                <div id="ticker" style="overflow: hidden; margin-bottom: 10px;">
                    <asp:Repeater ID="rpItemLEft" runat="server">
                        <ItemTemplate>
                            <dl style="margin-top: 0px;">
                                <dt class="heading">
                                    <%# Eval("ItemName") %></dt>
                                <dd class="text">
                                    <img src="images/icon_new.gif" width="32" height="32" alt="icon" />
                                    <a href='<%# "Chitiet.aspx?id=" + Eval("ItemID") %>'>
                                        <img src='<%# "Admin/img/Items/" + Eval("ImageURL") %>' width="176" alt="test" /></a>
                                </dd>
                            </dl>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
        <div class="content">
            <div class="title">
                Thông tin truy cập</div>
            <div class="content_main1" style="padding: 5px 5px 30px;">
                <p class="thongke">
                    <span class="dang_online">Đang online:
                        <% =Application["visitors_online"].ToString()%></span></p>
                <p class="thongke">
                    <span>Tổng truy cập:
                        <% =Application["TatCa"].ToString()%></span></p>
            </div>
        </div>
    </div>
    <div id="content_main">
        <h3>
            SẢN PHẨM</h3>
        <div class="sapxep">
            <table class="table">
                <tr>
                    <td style="width: 70px;">
                        Sắp xếp
                    </td>
                    <td style="width: 120px;">
                        <asp:DropDownList ID="drTangGiam" runat="server">
                            <asp:ListItem Value="1" Text="Tăng dần"></asp:ListItem>
                            <asp:ListItem Value="2" Text="Giảm dần"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width: 170px;">
                        <asp:DropDownList ID="drSelect" runat="server">
                            <asp:ListItem Value="1" Text="Giá"></asp:ListItem>
                            <asp:ListItem Value="2" Text="Tổng lượt xem"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="Đồng ý" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="pro_duct">
            <asp:ListView runat="server" ID="lvItems" ItemPlaceholderID="groupPlaceholder" GroupItemCount="4"
                GroupPlaceholderID="layoutTemplate" OnItemDataBound="lvItems_ItemDataBound" OnPagePropertiesChanged="lvItems_PagePropertiesChanged">
                <LayoutTemplate>
                    <table id="layoutTemplate" runat="server" border="0" cellpadding="0" cellspacing="0">
                    </table>
                </LayoutTemplate>
                <GroupTemplate>
                    <tr>
                        <div id="groupPlaceholder" runat="server">
                        </div>
                    </tr>
                </GroupTemplate>
                <ItemTemplate>
                    <div class="sp" price='<%# Eval("Price") %>' matchedprice='0' code='<%# Eval("ItemID") %>'>
                        <div class="img">
                            <h4>
                                <%# Eval("ItemName") %></h4>
                            <div class="item">
                                <a rel="lightbox-mygallery" href='<%# "Admin/img/Items/" + Eval("ImageURL") %>' title='<%# Eval("ItemName") %>'>
                                    <asp:Image ID="img" runat="server" ImageUrl='<%# "~/Admin/img/Items/" + Eval("ImageURL") %>'
                                        AlternateText="No Image" CssClass="item_img" Width="220" />
                                </a>
                            </div>
                            <div class="clear">
                            </div>
                            <p class="name_de">
                                <%# Eval("ItemName") %>
                            </p>
                            <div class="add">
                                <p class="gia_sp">
                                    <%# Convert.ToDouble(Eval("Price")).ToString("0,00.##")%>
                                    VNĐ
                                </p>
                                <p class="bt_details">
                                    <a href='<%# "Chitiet.aspx?id=" + Eval("ItemID") %>'>Xem chi tiết</a></p>
                            </div>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:ListView>
        </div>
        <div class="clear">
        </div>
        <h3>
            HONDA - CIVIC</h3>
            
    </div>
</div>
<div class="clear">
</div>
<div class="content_in">
    <asp:Repeater ID="rpDongxe" runat="server">
        <ItemTemplate>
            <div class="dongxe">
                <div class="img_xe">
                    <div class="item_xe">
                        <a title="" href='<%# "SanPham.aspx?idP=" + Eval("IDMenuParent") %>'>
                            <img src='<%# "Admin/img/Items/" + Eval("ImageURL")  %>' alt="" />
                        </a>
                    </div>
                    <p class="name_xe">
                        <a href="#">
                            <%# Eval("MenuParentName")%></a></p>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
